﻿#region Copyright Info

// 
// Majesty of Omega - The next evolution of macro management space strategy
// 
// Copyright 2007-2009 André Claaßen
// 
// This file is protected by the terms and conditions of the
// Microsoft Community License (Ms-CL 1.1), a copy of which should
// have been distributed along with this software. If not,
// you may find the license information at the following URL:
// 
// http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx

#endregion

#region

using System;
using Majesty_of_Omega.GUI.Animation;

#endregion

namespace Majesty_of_Omega.GUI.Pages.Load
{
    /// <summary>
    /// LoadPage Frame content for loading a game
    /// </summary>
    public partial class LoadPage : ITransitionAnimation
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="LoadPage"/> class.
        /// </summary>
        public LoadPage()
        {
            InitializeComponent();
        }

        #region ITransitionAnimation Members

        /// <summary>
        /// Start Unload Animation of the page
        /// </summary>
        public void StartUnloadAnimation()
        {
            SavedGamesGrid.StartUnloadAnimation();
        }

        /// <summary>
        /// Gets the duration of the Unload animation (2 Seconds)
        /// </summary>
        /// <value>The duration.</value>
        public TimeSpan Duration
        {
            get { return SavedGamesGrid.Duration(); }
        }

        #endregion
    }
}